package www.ym.com.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class AccountLog implements Serializable {
    public static final long serialVersionUID = 1L;

    //主键id
    private Long id;

    //订单号
    private Long orderId;

    //银行卡id
    private Long bankId;

    //用户id
    private Long userId;

    //账户名称
    private String accountName;

    //操作类型 0：入金 1：出金 2：冻结 3：解冻
    private String type;

    //交易金额
    private Integer tradeAmt;

    //操作人
    private String opName;

    //备注
    private String message;

    //创建时间
    @TableField(fill = FieldFill.INSERT)  //插入和修改时填充字段
    private LocalDateTime createTime;

    //更改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)  //插入和修改时填充字段
    private LocalDateTime updateTime;
}
